import moment from "moment";

type Itwix = {
    format(): string
    isSame(key: string): string
    humanizeLength(key?: string): string
    count(key: string): number
}

export function Mytwix(start: string | number | Date, end: string | number | Date): Itwix {
    const t = (moment(start) as any).twix(end)
    return t
}

